package com.tju.resource.business.tb_outward;

import com.tju.resource.model.TbOutward;
import com.tju.resource.model.TbOutwardConsumables;
import com.tju.resource.result.Result;

import java.util.Map;

public interface TbOutwardService {

    /*查询*/
    Result<Object> getAll(Map<String, String> params);

    /*添加*/
    Result<Object> add(TbOutward tbOutward);

    /*修改*/
    Result<Object> upd(TbOutward tbOutward);

    /*删除*/
    Result<Object> del(Long oId);

    /*判断供应商需要删除是否外发已使用*/
    Boolean judgmentSupplier(Long supplierId);

    /*外发单添加,修改耗材物品*/
    Result<Object> managementConsumables(TbOutwardConsumables tbOutwardConsumables);

    /*审核外发（一次，二次，三次）*/
    Result<Object> oneAudit(TbOutward outward);
    /*二审*/
    Result<Object> outwardApprove(TbOutward outward);

    Result<Object> twoOutwardApprove(TbOutward outward);
}
